package com.zhangln.mountbuzhou.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhangln.mountbuzhou.entity.TbAuthEntity;
import com.zhangln.mountbuzhou.mapper.TbAuthMapper;
import com.zhangln.mountbuzhou.dao.TbAuthDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 密码表 服务实现类
 * </p>
 *
 * @author sherry
 * @since 2020-04-28
 */
@Service
public class TbAuthDaoImpl extends ServiceImpl<TbAuthMapper, TbAuthEntity> implements TbAuthDao {

    @Override
    public TbAuthEntity getAuthByUsername(String username) {
        TbAuthEntity one = this.getOne(new QueryWrapper<TbAuthEntity>().eq(TbAuthEntity.USERNAME, username));
        return one;
    }
}
